<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>修改视频</title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
<script type="text/javascript" src="/PHPUnion/Home/Lib/Pintuer/jquery-1.11.0.js"></script>
<link rel="stylesheet" type="text/css" href="/PHPUnion/Home/Lib/Pintuer/pintuer.css" />
<script type="text/javascript" src="/PHPUnion/Home/Lib/Pintuer/pintuer.js"></script>
<script type="text/javascript" src="/PHPUnion/Home/Lib/Pintuer/respond.js"></script>
</head>
<body>
	<div class="container-layout">
		<div class="text-right border margin-little-bottom margin-top padding-right padding-top padding-bottom">
			<button type="button" onClick="location.href='<?php echo U('show', array('cid'=> $_GET['cid']));?>'" class="button bg-sub radius-none">
				<i class="icon-th-list"></i>
				视频列表
			</button>
			<button type="button" onClick="location.href='<?php echo U('edit', array('cid'=> $_GET['cid'],'aid'=> $_GET['aid']));?>'" class="button radius-none bg">
				<i class="icon-edit"></i>
				修改视频
			</button>
		</div>
	</div>
<div class="container-layout">
	<form action="<?php echo U('edit');?>" class="form-auto" method="POST" enctype="multipart/form-data">
		<input type="hidden" name="aid" value="<?php echo ($_GET['aid']); ?>" />
		<div class="line">
			<!-- 左侧 -->
			<div class="x8">
				<table class="table table-hover table-bordered">
					<tr>
						<td width="150" align="right">视频标题</td>
						<td>
							<input type="text" name="title" value="<?php echo ($field["title"]); ?>" class="input input-small" size="45" />
							<label><input type="checkbox" name="new_window" <?php if($field['new_window'] == 1): ?>checked="checked"<?php endif; ?>value="1" />是否新窗口</label>
						</td>
					</tr>
					<tr>
						<td align="right">频道栏目</td>
						<td>
							<select name="cid" class="input input-small" style="width:200px;">
								<?php if(is_array($cate)): $i = 0; $__LIST__ = $cate;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option value="<?php echo ($vo["cid"]); ?>" <?php if($vo['cid'] == $_GET['cid']): ?>selected="selected"<?php endif; if($vo['cattype'] == 2): ?>disabled="disabled"<?php endif; ?>><?php echo ($vo["_name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
							</select>
						</td>
					</tr>
					<tr>
						<td align="right">发布者</td>
						<td>
							<input type="text" name="uid" value="<?php echo ($field["_author"]); ?>" class="input input-small" size="45"/>
							<span>请输入用户账户,不要输入昵称。</span>
						</td>
					</tr>
					<tr>
						<td align="right">SEO标题</td>
						<td><input type="text" name="seo_title" value="<?php echo ($field["seo_title"]); ?>" class="input input-small" size="45"/></td>
					</tr>
					<tr>
						<td align="right">关键词</td>
						<td><input type="text" name="keywords" value="<?php echo ($field["keywords"]); ?>" class="input input-small" size="45"/></td>
					</tr>
					<tr>
						<td align="right">视频上传</td>
						<td><input type="file" name="video_path" /></td>
					</tr>
					<tr>
						<td align="right">视频简介</td>
						<td><textarea name="content" rows="10" style="width:100%;" class="input input-small" size="45"><?php echo ($field["content"]); ?></textarea></td>
					</tr>
					<tr>
						<td align="right">Tag</td>
						<td><input type="text" name="tag" value="<?php echo ($field["tag"]); ?>" class="input input-small" size="45" /></td>
					</tr>
					<tr>
						<td align="right">推荐位</td>
						<td>
							<?php if(is_array($flag)): $i = 0; $__LIST__ = $flag;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><label><input type="checkbox" name="fid[]" value="<?php echo ($vo["fid"]); ?>"/> <?php echo ($vo["fname"]); ?></label><?php endforeach; endif; else: echo "" ;endif; ?>
						</td>
					</tr>
					<tr>
						<td align="right">访问方式</td>
						<td>
							<label><input type="radio" name="url_type" <?php if($field['url_type'] == 1): ?>checked="checked"<?php endif; ?> value="1">静态访问</label>
							<label><input type="radio" name="url_type" <?php if($field['url_type'] == 2): ?>checked="checked"<?php endif; ?>  value="2">动态访问</label>
							<label><input type="radio" name="url_type" <?php if($field['url_type'] == 3): ?>checked="checked"<?php endif; ?>  value="3">继承栏目</label>
						</td>
					</tr>
				</table>
			</div>
			<!-- 左侧 End -->

			<!-- 右侧 -->
			<div class="x4 padding-left">
				<table class="table table-hover table-bordered">
					<tr class="bg">
						<td>缩略图</td>
					</tr>
					<tr>
						<td>
							<img src="./Home/Admin/View/Public/images/upload_pic.png" width="150" height="100" />
							<input type="file" name="thumb"/>
						</td>
					</tr>
					<tr class="bg">
						<td>播放次数</td>
					</tr>
					<tr>
						<td><input type="text" name="click" value="<?php echo ($field["click"]); ?>" class="input input-small" size="45"/></td>
					</tr>
					<tr class="bg">
						<td>状态</td>
					</tr>
					<tr>
						<td>
							<label><input type="radio" name="video_status" <?php if($field['video_status'] == 0): ?>checked="checked"<?php endif; ?> value="0"/> 未审核</label>
							<label><input type="radio" name="video_status" <?php if($field['video_status'] == 1): ?>checked="checked"<?php endif; ?> value="1"/> 已审核</label>
						</td>
					</tr>
					<tr class="bg">
						<td>发布时间</td>
					</tr>
					<tr>
						<td><input type="text" name="" value="<?php echo (date('Y-m-d H:i:s',$field["addtime"])); ?>" class="input input-small" size="45" /></td>
					</tr>
					<tr class="bg">
						<td>更新时间</td>
					</tr>
					<tr>
						<td><input type="text" name="" value="<?php echo (date('Y-m-d H:i:s',$field["updatetime"])); ?>" class="input input-small" size="45" /></td>
					</tr>
				</table>
			</div>
			<!-- 右侧 End -->
		</div>
		<div class="border margin-little-top padding">
			<button type="submit" class="button radius-none bg-main">
				提交保存
			</button>
		</div>
	</form>
</div>
</body>
</html>